package ModelLayer;

import java.util.ArrayList;
/**
 * This class creates an objekt of type DVD
 * 
 * @author (group 1(A)) 
 * @version (14-04-2011)
 */
public class DVD
{
    // instance variables - replace the example below with your own
    private int id;
    private String title;
    private String artist;
    private int releaseDate;
    private String description;
    private Copy copy;
    
    /**
     * Constructor for objects of class DVD
     * @param id Id of the DVD
     * @param title Title of the DVD
     * @param artist Artist who made the DVD
     * @param releaseDate Release date of the DVD
     * @param serialNumber Serial number of the DVD
     * @param getDate The purchase date of the DVD
     * @param getPrice The purchase date of the DVD
     * 
     */
    public DVD(int id, String title, String artist, int releaseDate, int serialNumber, int getDate, int getPrice)
    {
        this.id = id ;
        this.title = title;
        this.artist = artist;
        this.releaseDate = releaseDate;
        copy = new Copy(serialNumber, getDate, getPrice);
    }

   /**
     * Set the DVDs id
     * @param id Id of the DVD
     */
    public void setId(int id)
    {
        this.id = id;
    }
    
    /**
     * Return the DVDs id
     * @return Return the id of the Loan
     */
    public int getId()
    {
        return id;
    }
    
    /**
     * Set the DVDs title
     * @set Set the title of the Loan
     */
    public void setTitle(String title)
    {
        this.title = title;
    }
    
    /**
     * Return the DVDs title
     * @return Return the title of the dvd
     */
    public String getTitle()
    {
        return title;
    }
    
    /**
     * Set the DVDs artist
     * @set Set who the artist is of the dvd
     */
    public void setArtist(String artist)
    {
        this.artist = artist;
    }
    
    /**
     * Return the DVDs artist
     * @return who the artist is of the dvd
     */
    public String getArtist()
    {
        return artist;
    }
    
    /**
     * Set the DVDs relaseDate
     * @set Set the relaseDate of the dvd
     */
    public void setReleaseDate(int releaseDate)
    {
        this.releaseDate = releaseDate;
    }
    
    /**
     * Return the DVDs relaseDate
     * return Return the relaseDate of the dvd
     */
    public int getReleaseDate()
    {
        return releaseDate;
    }
    
    /**
     * Set the description of the dvd
     * @set Set the description of the dvd
     */
    public void setDescription(String description)
    {
        this.description = description;
    }
    
    /**
     * Set the fields of the copy
     * @param serialNumber is the serial number of the copy
     * @param getDate is the date on went they will get the copy
     * @param getPrice is how much the copy cost
     */
    public void setCopy(int serialNumber, int getDate, int getPrice)
    {
        copy = new Copy(serialNumber, getDate, getPrice);
    } 
    
    /**
     * Return serialNumber of the copy
     * @return Returns the serialNumber of the copy
     */
    public int getCopySerialNumber()
    {
        return copy.getSerialNumber();
    }
    
    /**
     * Return getDate of the copy
     * @return Returns the purchase date of the copy
     */
    public int getCopyGetDate()
    {
        return copy.getGetDate();
    }
    
    /**
     *Return getPrice of the copy 
     *@return Returns the purchase price of the copy
     */
    public int getCopyGetPrice()
    {
        return copy.getGetPrice();
    }
}